

package jetbrains.buildServer.server.rest.service.rest;

import jetbrains.buildServer.server.rest.jersey.provider.annotated.JerseyInjectable;
import jetbrains.buildServer.server.rest.model.project.SshKey;
import jetbrains.buildServer.server.rest.model.project.SshKeys;
import org.jetbrains.annotations.NotNull;

@JerseyInjectable
public interface ProjectSshKeyRestService {
  @NotNull
  SshKeys getSshKeys(@NotNull String projectLocator);
  void addSshKey(@NotNull String projectLocator, @NotNull String keyName, @NotNull byte[] privateKey);
  @NotNull
  SshKey generateSshKey(@NotNull String projectLocator, @NotNull String keyName, @NotNull String keyType);
  void deleteSshKey(@NotNull String projectLocator, @NotNull String keyName);
}